package net.didactylos.helpline.action;

import net.didactylos.helpline.stripes.bean.HelplineActionBean;
import net.didactylos.helpline.stripes.security.Capabilities;
import net.didactylos.helpline.stripes.security.Secured;
import net.sourceforge.stripes.action.*;

public class SignoutAction extends HelplineActionBean
{
	@DefaultHandler
	@Secured(Capabilities.NONE)
	public Resolution signout()
	{
		getContext().logout();
		
		getContext().getMessages().add(new LocalizableMessage("signoutMessage"));
		
        return new RedirectResolution(SigninAction.class);
	}

}
